import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import reportWebVitals from './reportWebVitals';
import "antd/dist/antd.css";
import Login from './components/Login/Login';
import Home from './components/Home/Home';
import
{
    BrowserRouter as Router,
    Switch,
    Route,
} from "react-router-dom";
import Register from './components/Login/Register';


ReactDOM.render(
    <Router>
        <Switch>
            <Route path="/Home">
                <Home />
            </Route>
            <Route path="/Login">
                <Login />
            </Route>
            <Route path="/Register">
                <Register />
            </Route>
        </Switch>
    </Router>,
    document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
